package com.sjq.common.entity;

import java.io.Serializable;

public class User implements Serializable {
	private static final long serialVersionUID = 5650888856262558645L;
	private static final String EMPTY_USER_ID = "-1";

	private String YHM = EMPTY_USER_ID;
	private String GMSFHM;
	private String XM;
	private String XBDM;
	private String JH;
	private String LXFS;
	private String YHMM;
	private String DWBM;
	private String DWMC;
	/**
	 * 当前用户Ip
	 */
	private String userIp;
	private String ROLEDM;

	public User() {
		super();
		// TODO Auto-generated constructor stub
	}

	public User(String yHM, String gMSFHM, String xM, String xBDM, String jH,
			String lXFS, String yHMM, String dWBM, String dWMC, String userIp,
			String rOLEDM) {
		super();
		YHM = yHM;
		GMSFHM = gMSFHM;
		XM = xM;
		XBDM = xBDM;
		JH = jH;
		LXFS = lXFS;
		YHMM = yHMM;
		DWBM = dWBM;
		DWMC = dWMC;
		this.userIp = userIp;
		ROLEDM = rOLEDM;
	}

	@Override
	public String toString() {
		return "User [YHM=" + YHM + ", GMSFHM=" + GMSFHM + ", XM=" + XM
				+ ", XBDM=" + XBDM + ", JH=" + JH + ", LXFS=" + LXFS
				+ ", YHMM=" + YHMM + ", DWBM=" + DWBM + ", DWMC=" + DWMC
				+ ", userIp=" + userIp + ", ROLEDM=" + ROLEDM + "]";
	}

	public String getUserIp() {
		return userIp;
	}

	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}

	public boolean isEmpty() {
		return (EMPTY_USER_ID == getYHM());
	}

	public String getYHM() {
		return YHM;
	}

	public void setYHM(String yhm) {
		YHM = yhm;
	}

	public String getGMSFHM() {
		return GMSFHM;
	}

	public void setGMSFHM(String gmsfhm) {
		GMSFHM = gmsfhm;
	}

	public String getXM() {
		return XM;
	}

	public void setXM(String xm) {
		XM = xm;
	}

	public String getXBDM() {
		return XBDM;
	}

	public void setXBDM(String xbdm) {
		XBDM = xbdm;
	}

	public String getJH() {
		return JH;
	}

	public void setJH(String jh) {
		JH = jh;
	}

	public String getLXFS() {
		return LXFS;
	}

	public void setLXFS(String lxfs) {
		LXFS = lxfs;
	}

	public String getYHMM() {
		return YHMM;
	}

	public void setYHMM(String yhmm) {
		YHMM = yhmm;
	}

	public String getDWBM() {
		return DWBM;
	}

	public void setDWBM(String dwbm) {
		DWBM = dwbm;
	}

	public String getDWMC() {
		return DWMC;
	}

	public void setDWMC(String dwmc) {
		DWMC = dwmc;
	}

	public String getROLEDM() {
		return ROLEDM;
	}

	public void setROLEDM(String rOLEDM) {
		ROLEDM = rOLEDM;
	}

}
